package abs.dao;

import abs.domain.Retenciones;

import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;

import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;

import org.skyway.spring.util.dao.AbstractJpaDao;

import org.springframework.dao.DataAccessException;

import org.springframework.stereotype.Repository;

import org.springframework.transaction.annotation.Transactional;

/**
 * DAO to manage Retenciones entities.
 * 
 */
@Repository("RetencionesDAO")
@Transactional
public class RetencionesDAOImpl extends AbstractJpaDao<Retenciones> implements
		RetencionesDAO {

	/**
	 * Set of entity classes managed by this DAO.  Typically a DAO manages a single entity.
	 *
	 */
	private final static Set<Class<?>> dataTypes = new HashSet<Class<?>>(Arrays.asList(new Class<?>[] { Retenciones.class }));

	/**
	 * EntityManager injected by Spring for persistence unit absV2
	 *
	 */
	@PersistenceContext(unitName = "absV2")
	private EntityManager entityManager;

	/**
	 * Instantiates a new RetencionesDAOImpl
	 *
	 */
	public RetencionesDAOImpl() {
		super();
	}

	/**
	 * Get the entity manager that manages persistence unit 
	 *
	 */
	@Override
	public EntityManager getEntityManager() {
		return entityManager;
	}

	/**
	 * Returns the set of entity classes managed by this DAO.
	 *
	 */
	@Override
	public Set<Class<?>> getTypes() {
		return dataTypes;
	}

	/**
	 * JPQL Query - findRetencionesByRt100femoAfter
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100femoAfter(java.util.Calendar rt100femo) throws DataAccessException {

		return findRetencionesByRt100femoAfter(rt100femo, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100femoAfter
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100femoAfter(java.util.Calendar rt100femo, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100femoAfter", startResult, maxRows, rt100femo);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv4
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv4(String rt100niv4) throws DataAccessException {

		return findRetencionesByRt100niv4(rt100niv4, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv4
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv4(String rt100niv4, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100niv4", startResult, maxRows, rt100niv4);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100fead
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100fead(java.util.Calendar rt100fead) throws DataAccessException {

		return findRetencionesByRt100fead(rt100fead, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100fead
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100fead(java.util.Calendar rt100fead, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100fead", startResult, maxRows, rt100fead);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100ctacContaining
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100ctacContaining(String rt100ctac) throws DataAccessException {

		return findRetencionesByRt100ctacContaining(rt100ctac, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100ctacContaining
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100ctacContaining(String rt100ctac, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100ctacContaining", startResult, maxRows, rt100ctac);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByPrimaryKey
	 *
	 */
	@Override
	@Transactional
	public Retenciones findRetencionesByPrimaryKey(String rt100nocia, String rt100cdgo) throws DataAccessException {

		return findRetencionesByPrimaryKey(rt100nocia, rt100cdgo, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByPrimaryKey
	 *
	 */

	@Override
	@Transactional
	public Retenciones findRetencionesByPrimaryKey(String rt100nocia, String rt100cdgo, int startResult, int maxRows) throws DataAccessException {
		try {
			Query query = createNamedQuery("findRetencionesByPrimaryKey", startResult, maxRows, rt100nocia, rt100cdgo);
			return (abs.domain.Retenciones) query.getSingleResult();
		} catch (NoResultException nre) {
			return null;
		}
	}

	/**
	 * JPQL Query - findRetencionesByRt100tipoContaining
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100tipoContaining(String rt100tipo) throws DataAccessException {

		return findRetencionesByRt100tipoContaining(rt100tipo, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100tipoContaining
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100tipoContaining(String rt100tipo, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100tipoContaining", startResult, maxRows, rt100tipo);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100desc
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100desc(String rt100desc) throws DataAccessException {

		return findRetencionesByRt100desc(rt100desc, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100desc
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100desc(String rt100desc, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100desc", startResult, maxRows, rt100desc);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findAllRetencioness
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findAllRetencioness() throws DataAccessException {

		return findAllRetencioness(-1, -1);
	}

	/**
	 * JPQL Query - findAllRetencioness
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findAllRetencioness(int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findAllRetencioness", startResult, maxRows);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100descContaining
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100descContaining(String rt100desc) throws DataAccessException {

		return findRetencionesByRt100descContaining(rt100desc, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100descContaining
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100descContaining(String rt100desc, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100descContaining", startResult, maxRows, rt100desc);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100estaContaining
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100estaContaining(String rt100esta) throws DataAccessException {

		return findRetencionesByRt100estaContaining(rt100esta, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100estaContaining
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100estaContaining(String rt100esta, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100estaContaining", startResult, maxRows, rt100esta);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv5
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv5(String rt100niv5) throws DataAccessException {

		return findRetencionesByRt100niv5(rt100niv5, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv5
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv5(String rt100niv5, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100niv5", startResult, maxRows, rt100niv5);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100ctac
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100ctac(String rt100ctac) throws DataAccessException {

		return findRetencionesByRt100ctac(rt100ctac, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100ctac
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100ctac(String rt100ctac, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100ctac", startResult, maxRows, rt100ctac);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv5Containing
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv5Containing(String rt100niv5) throws DataAccessException {

		return findRetencionesByRt100niv5Containing(rt100niv5, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv5Containing
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv5Containing(String rt100niv5, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100niv5Containing", startResult, maxRows, rt100niv5);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100loadContaining
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100loadContaining(String rt100load) throws DataAccessException {

		return findRetencionesByRt100loadContaining(rt100load, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100loadContaining
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100loadContaining(String rt100load, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100loadContaining", startResult, maxRows, rt100load);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv2
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv2(String rt100niv2) throws DataAccessException {

		return findRetencionesByRt100niv2(rt100niv2, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv2
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv2(String rt100niv2, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100niv2", startResult, maxRows, rt100niv2);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv1Containing
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv1Containing(String rt100niv1) throws DataAccessException {

		return findRetencionesByRt100niv1Containing(rt100niv1, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv1Containing
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv1Containing(String rt100niv1, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100niv1Containing", startResult, maxRows, rt100niv1);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100timo
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100timo(String rt100timo) throws DataAccessException {

		return findRetencionesByRt100timo(rt100timo, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100timo
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100timo(String rt100timo, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100timo", startResult, maxRows, rt100timo);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100timoContaining
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100timoContaining(String rt100timo) throws DataAccessException {

		return findRetencionesByRt100timoContaining(rt100timo, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100timoContaining
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100timoContaining(String rt100timo, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100timoContaining", startResult, maxRows, rt100timo);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv4Containing
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv4Containing(String rt100niv4) throws DataAccessException {

		return findRetencionesByRt100niv4Containing(rt100niv4, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv4Containing
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv4Containing(String rt100niv4, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100niv4Containing", startResult, maxRows, rt100niv4);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100lomo
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100lomo(String rt100lomo) throws DataAccessException {

		return findRetencionesByRt100lomo(rt100lomo, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100lomo
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100lomo(String rt100lomo, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100lomo", startResult, maxRows, rt100lomo);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100feadAfter
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100feadAfter(java.util.Calendar rt100fead) throws DataAccessException {

		return findRetencionesByRt100feadAfter(rt100fead, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100feadAfter
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100feadAfter(java.util.Calendar rt100fead, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100feadAfter", startResult, maxRows, rt100fead);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv2Containing
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv2Containing(String rt100niv2) throws DataAccessException {

		return findRetencionesByRt100niv2Containing(rt100niv2, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv2Containing
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv2Containing(String rt100niv2, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100niv2Containing", startResult, maxRows, rt100niv2);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv1
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv1(String rt100niv1) throws DataAccessException {

		return findRetencionesByRt100niv1(rt100niv1, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv1
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv1(String rt100niv1, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100niv1", startResult, maxRows, rt100niv1);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv3Containing
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv3Containing(String rt100niv3) throws DataAccessException {

		return findRetencionesByRt100niv3Containing(rt100niv3, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv3Containing
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv3Containing(String rt100niv3, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100niv3Containing", startResult, maxRows, rt100niv3);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100load
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100load(String rt100load) throws DataAccessException {

		return findRetencionesByRt100load(rt100load, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100load
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100load(String rt100load, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100load", startResult, maxRows, rt100load);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByPrimaryKey
	 *
	 */
	@Transactional
	public Retenciones findRetencionesByPrimaryKey(String rt100cdgo) throws DataAccessException {

		return findRetencionesByPrimaryKey(rt100cdgo, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByPrimaryKey
	 *
	 */

	@Transactional
	public Retenciones findRetencionesByPrimaryKey(String rt100cdgo, int startResult, int maxRows) throws DataAccessException {
		try {
			Query query = createNamedQuery("findRetencionesByPrimaryKey", startResult, maxRows, rt100cdgo);
			return (abs.domain.Retenciones) query.getSingleResult();
		} catch (NoResultException nre) {
			return null;
		}
	}

	/**
	 * JPQL Query - findRetencionesByRt100cdgoContaining
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100cdgoContaining(String rt100cdgo) throws DataAccessException {

		return findRetencionesByRt100cdgoContaining(rt100cdgo, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100cdgoContaining
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100cdgoContaining(String rt100cdgo, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100cdgoContaining", startResult, maxRows, rt100cdgo);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100nocia
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100nocia(String rt100nocia) throws DataAccessException {

		return findRetencionesByRt100nocia(rt100nocia, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100nocia
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100nocia(String rt100nocia, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100nocia", startResult, maxRows, rt100nocia);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100femo
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100femo(java.util.Calendar rt100femo) throws DataAccessException {

		return findRetencionesByRt100femo(rt100femo, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100femo
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100femo(java.util.Calendar rt100femo, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100femo", startResult, maxRows, rt100femo);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100femoBefore
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100femoBefore(java.util.Calendar rt100femo) throws DataAccessException {

		return findRetencionesByRt100femoBefore(rt100femo, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100femoBefore
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100femoBefore(java.util.Calendar rt100femo, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100femoBefore", startResult, maxRows, rt100femo);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100esta
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100esta(String rt100esta) throws DataAccessException {

		return findRetencionesByRt100esta(rt100esta, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100esta
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100esta(String rt100esta, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100esta", startResult, maxRows, rt100esta);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100feadBefore
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100feadBefore(java.util.Calendar rt100fead) throws DataAccessException {

		return findRetencionesByRt100feadBefore(rt100fead, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100feadBefore
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100feadBefore(java.util.Calendar rt100fead, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100feadBefore", startResult, maxRows, rt100fead);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100lomoContaining
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100lomoContaining(String rt100lomo) throws DataAccessException {

		return findRetencionesByRt100lomoContaining(rt100lomo, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100lomoContaining
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100lomoContaining(String rt100lomo, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100lomoContaining", startResult, maxRows, rt100lomo);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100nociaContaining
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100nociaContaining(String rt100nocia) throws DataAccessException {

		return findRetencionesByRt100nociaContaining(rt100nocia, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100nociaContaining
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100nociaContaining(String rt100nocia, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100nociaContaining", startResult, maxRows, rt100nocia);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv3
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv3(String rt100niv3) throws DataAccessException {

		return findRetencionesByRt100niv3(rt100niv3, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100niv3
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100niv3(String rt100niv3, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100niv3", startResult, maxRows, rt100niv3);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100porc
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100porc(java.math.BigDecimal rt100porc) throws DataAccessException {

		return findRetencionesByRt100porc(rt100porc, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100porc
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100porc(java.math.BigDecimal rt100porc, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100porc", startResult, maxRows, rt100porc);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100cdgo
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100cdgo(String rt100cdgo) throws DataAccessException {

		return findRetencionesByRt100cdgo(rt100cdgo, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100cdgo
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100cdgo(String rt100cdgo, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100cdgo", startResult, maxRows, rt100cdgo);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * JPQL Query - findRetencionesByRt100tipo
	 *
	 */
	@Override
	@Transactional
	public Set<Retenciones> findRetencionesByRt100tipo(String rt100tipo) throws DataAccessException {

		return findRetencionesByRt100tipo(rt100tipo, -1, -1);
	}

	/**
	 * JPQL Query - findRetencionesByRt100tipo
	 *
	 */

	@Override
	@SuppressWarnings("unchecked")
	@Transactional
	public Set<Retenciones> findRetencionesByRt100tipo(String rt100tipo, int startResult, int maxRows) throws DataAccessException {
		Query query = createNamedQuery("findRetencionesByRt100tipo", startResult, maxRows, rt100tipo);
		return new LinkedHashSet<Retenciones>(query.getResultList());
	}

	/**
	 * Used to determine whether or not to merge the entity or persist the entity when calling Store
	 * @see store
	 * 
	 *
	 */
	@Override
	public boolean canBeMerged(Retenciones entity) {
		return true;
	}
}
